﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using IBLL;
using Model;

namespace EnterpriseLibraryDemo
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                IStudentManage studentManage = new StudentManage();

                var student = new Student()
                {
                    ClassId = 1,
                    Birthday = DateTime.Now
                   ,
                    IsAdmin = 0,
                    Name = "test",
                    Password = "123"
                   ,
                    Sid = "123",
                    Gender = 1
                };
                Response.Write(studentManage.Add(student));
            }
            catch (Exception ex)
            {
               Response.Write(ex.Message);
            }
        }
    }
}
